<?php
	require_once("connect.php");
	$user_id=$_GET["user_id"];
	//$user_id=3;
	$sql="update user_account set actived = 1 where id='$user_id'";
	$result=mysqli_query($con, $sql);
	if($result){
		?>
		<script>alert('Activate successfully!!!');window.location.href='index.php';</script>

		<?php
	}else{
		?>
		<script>alert('Activate Failed!!!');window.location.href='index.php';</script>

		<?php
		echo mysqli_error($con);
	}
	
	
	?>